/*
 * Baddie
 *
 *  Created on: Feb 9, 2010
 *      Author: dcrown
 */

#ifndef BADDIE_H_
#define BADDIE_H_

#include "..\Includes\Common.h"
#include "..\Graphics\Texture.h"
#include "..\Graphics\Sprite.h"
#include "..\Systems\PositionManager.h"
#include "..\Systems\Clock.h"
#include "..\Systems\MovePattern.h"

class Baddie
{
public:
	Baddie() {}
	virtual ~Baddie() {}

	void Clear() {};
	void Create(float normalizedXPos, float normalizedYPos, int spawnTime, MovePattern* mp);
	void Destroy();// {}

	void Update(int time);
	void Render();

private:

	void AdjustBounds();
	void Activate();
	void Deactivate();

	PositionManager pos;
	int windowWidth, windowHeight;
	float normXPos, normYPos;
	bool active;
	int spawnTime;

	Clock moveClock;
	Texture* texture;
	Sprite* sprite;
};

#endif /* BADDIE_H_ */
